import React, { FC } from 'react'
import { TableItemWrap } from './style'
import { ItemLabel } from './ItemLabel'
import { ItemAction } from './ItemAction'
import { LiveModel } from '@/api/manager/live/interface'

interface TableItemProps {
	rowData: LiveModel
	isOdd: boolean
	style?: React.CSSProperties
}
export const TableItem: FC<TableItemProps> = ({ rowData, isOdd, style }) => {
	return (
		<TableItemWrap isOdd={isOdd} style={style}>
			<ItemLabel {...rowData} />
			<ItemAction {...rowData} />
		</TableItemWrap>
	)
}
